<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta id="plat_viewport" name="viewport" content="width=device-width, initial-scale=0.5, user-scalable=no, target-densitydpi=device-dpi">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <title>相册-蚂蚁搬运工</title>
    <link rel="shortcut icon" href="<?php echo base_url('file/images/mayi.ico') ?>" type="image/x-icon" />
    <link rel="stylesheet" type="text/css" href="<?php echo base_url('file/css/wap.css') ?>">
</head>
<body>
<section class="conbg photo">
    <header class="otherbanner" id="home">
        <h1>相册</h1>
    </header>
    <nav id="nav" class="nav">
        <img src="<?php echo base_url('file/images/nav_img.png') ?>" width="30px">

        <ul class="nav_title">
            <li><a href="<?php echo base_url('home') ?>">首 页</a></li>
            <li><a href="<?php echo base_url('skill') ?>">技 能</a></li>
            <li><a href="<?php echo base_url('project/prolist') ?>">博 客</a></li>
            <li><a href="<?php echo base_url('movie/movielist') ?>">电 影</a></li>
            <li><a href="<?php echo base_url('photo') ?>">相 册</a></li>
            <li><a href="<?php echo base_url('team') ?>">我们团队</a></li>
            <li><a href="<?php echo base_url('about') ?>">关 于</a></li>
        </ul>
    </nav>

    <div class="othercontent" style="padding: 0">
        <div class="photo_box clearfix">
            <?php if (count($dirs) == 0) {echo "<p class='placehold'>还有有相册 请创建</p>";} ?>
            <?php for($i = 0; $i < count($dirs); $i++) { ?>
                <a href="<?php echo base_url('photo/skim/'.$dirs[$i]['name'].'/'.$dirs[$i]['picid']) ?>">
                    <div class="img_box">
                        <?php if (strlen($dirs[$i]['cover']) > 0) { ?>
                            <img src="<?php echo base_url('photos/'.$dirs[$i]['name'].'/'.$dirs[$i]['cover']) ?>" height="100%">
                        <?php } else { ?>
                            <img src="<?php echo base_url('file/images/blog_img2.png') ?>" height="100%">
                        <?php } ?>
                        <p><?php echo $dirs[$i]['name']; ?></p>
                    </div>
                </a>
            <?php } ?>
        </div>

        <button class="photo_add" onclick="photo.hover_show()">创建相册</button>
    </div>

    <div class="create_hover clearfix">
        <div action="" method="post" class="create_hover_box">
            <input type="text" name="dirname" class="dirname" placeholder="文件夹名字">
            <textarea name="dirdesc" class="dirdesc" placeholder="请输入描述" ></textarea>
            <button onclick="photo.create_dir()">提交</button>
            <img src="<?php echo base_url('file/images/nav_ser_icon1.png') ?>" width="20px" onclick="photo.hover_hide()">
        <div/>
    </div>
</section>

<script src="<?php echo base_url('file/js/wap.js') ?>" type="text/javascript" charset="utf-8"></script>
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js" type="text/javascript"></script>
<script>
    index.nav(100);
</script>
</body>
</html>